package com.yz.book.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ste
 * @since 2023-02-04 03:37:37
 */
@Data
@TableName("t_order")
public class Order {

    @TableId("id")
    private Integer id;

    /**
     * 订单号
     */
    @TableField("order_num")
    private String orderNum;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 地址id
     */
    @TableField("address_id")
    private Integer addressId;

    /**
     * 状态(1未支付，2已支付,3已取消)
     */
    @TableField("status")
    private Integer status;

    /**
     * 总金额
     */
    @TableField("total_price")
    private BigDecimal totalPrice;

    /**
     * 订单创建时间
     */
    @TableField("create_time")
    private Date createTime;

}
